package com.geek.observer.normal;

public class Client {
    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        // 多个监听者
        subject.register(new ConcreteObserverOne());
        subject.register(new ConcreteObserverTwo());
        // 发送消息
        subject.notifyObservers(new Message());
    }
}
